package com.our.biz;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.our.dao.RewardsMapper;
import com.our.model.Rewards;
import com.our.util.BusinessException;

@Service
public class RewardsBiz {
	@Resource
	private RewardsMapper rewardsMapper;
	public Rewards findById(int rewardId) throws BusinessException {
		try {
			
			return rewardsMapper.selectByPrimaryKey(rewardId);
		
		} catch (Exception e) {
			throw new BusinessException("E040304B04");
		}
	}
}
